package com.bh.shipment.mapper;

import com.bh.common.basemapper.RootMapper;
import com.bh.shipment.domain.JcBerthStand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 经由站Mapper接口
 *
 * @author slx
 * @date 2023-04-22
 */
@Mapper
public interface JcBerthStandMapper extends RootMapper<JcBerthStand> {

    /**
     * 查询经由站列表
     *
     * @param jcBerthStand 经由站
     * @return 经由站集合
     */
    public List<JcBerthStand> selectJcBerthStandList(JcBerthStand jcBerthStand);

    /**
     * 查询经由站列表
     * @param jcShipmentId
     * @return
     */
    public List<JcBerthStand> selectJcBerthStandListByShipmentId(@Param("jcShipmentId") Long jcShipmentId);


    /**
     * 删除jc泊位站在装运id
     *
     * @param jcShipmentId 货物id
     * @return int
     */
    public int deleteJcBerthStandByShipmentId(@Param("jcShipmentId") Long jcShipmentId);
}
